<?php

	//function chargerclasse($class_name) {
    //include $class_name . '.php';
//}


	class Publishable_Test{

		private $_Publishable;

		public function __construct(){

}

	public function ConstructTest(){
		$this -> _Publishable = new Publishable ('test1PublicationDate','test1Author');
	}
	
	public function getPublicationDateTest(){
		return ($this -> _Publishable -> GetPublicationDate() =='test1PublicationDate');
	}

	public function getAuthorTest(){
		return ($this -> _Publishable -> GetAuthor() =='test1Author');
	}

}

	$PublishableTest = new Publishable_Test();
	$PublishableTest->ConstructTest();

	if 
		($PublishableTest -> GetPublicationDate ()) {

		printf ("test GetPublicationDate OK \n");
}
	else {

		printf("test GetPublication FAILED \n");
	}


	if 
		($PublishableTest -> GetAuthor ()) {

		printf ("test GetAuthor OK \n");
}
	else {

		printf("test GetAuthor FAILED \n");
	}


	
?>